<?php
/* Smarty version 3.1.33, created on 2018-10-10 15:20:31
  from 'F:\xampp\htdocs\php\Homework1010\smarty\template\student\list.html' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_5bbdfc9f6c9895_67566578',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'd0a025a090ceaaa85d8267df425938496afb0100' => 
    array (
      0 => 'F:\\xampp\\htdocs\\php\\Homework1010\\smarty\\template\\student\\list.html',
      1 => 1539177630,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_5bbdfc9f6c9895_67566578 (Smarty_Internal_Template $_smarty_tpl) {
?><!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
    <meta name="Keywords" content="嘉兴东臣信息科技有限公司"/>
    <meta name="Description"
          content="嘉兴东臣信息科技公司根据全球服务外包产业的发展趋势和中国服务外包产业发展的新特点，借助于世界500强企业Oracle在全球IT教育的领导地位，通过Oracle创新IT人才培训体系和整体解决方案"/>

    <title>用户列表</title>
    <link rel="stylesheet" href="assets/css/amazeui.css">
</head>
<body>

<div class="am-progress">
    <div class="am-progress-bar am-progress-bar-secondary" style="width: 10%"></div>
</div>


<a href="index.php?action=student&func=add_html" class="am-btn am-btn-warning" >添加学生</a>
<table class="am-table am-table-bordered am-table-striped am-table-compact">
    <thead>
    <tr>
        <th>名字</th>
        <th>学号</th>
        <th>性别</th>
        <th>年龄</th>
        <th>电话</th>
    </tr>
    </thead>
    <tbody>

    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['students']->value, 'stu');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['stu']->value) {
?>

    <tr>
        <td><?php echo $_smarty_tpl->tpl_vars['stu']->value['Stud_name'];?>
</td>
        <td><?php echo $_smarty_tpl->tpl_vars['stu']->value['Stud_id'];?>
</td>
        <td><?php echo $_smarty_tpl->tpl_vars['stu']->value['Stud_sex'];?>
</td>
        <td><?php echo $_smarty_tpl->tpl_vars['stu']->value['Birth_date'];?>
</td>
        <td><?php echo $_smarty_tpl->tpl_vars['stu']->value['Mobile'];?>
</td>
        <td>
            <a class="am-btn am-btn-success" href="index.php?action=student&func=edit_html&id=<?php echo $_smarty_tpl->tpl_vars['stu']->value['Stud_id'];?>
">编辑</a>
            <a class="am-btn am-btn-danger" href="index.php?action=student&func=del&id=<?php echo $_smarty_tpl->tpl_vars['stu']->value['Stud_id'];?>
">删除</a>
        </td>
    </tr>
    <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>

    </tbody>
</table>

<ul class="am-pagination am-pagination-centered">

    当前第<?php echo $_smarty_tpl->tpl_vars['page']->value;?>
页,共<?php echo $_smarty_tpl->tpl_vars['count_page']->value;?>
页
    <?php if ($_smarty_tpl->tpl_vars['page']->value != 1) {?>
        <li><a href="index.php?action=student&func=lists&page=<?php echo $_smarty_tpl->tpl_vars['page']->value-1;?>
">&laquo;</a></li>
    <?php } else { ?>
        <li class="am-disabled" ><a href="#" >&laquo;</a></li>
    <?php }?>

    <?php
$_smarty_tpl->tpl_vars['i'] = new Smarty_Variable(null, $_smarty_tpl->isRenderingCache);$_smarty_tpl->tpl_vars['i']->step = - 1;$_smarty_tpl->tpl_vars['i']->total = (int) ceil(($_smarty_tpl->tpl_vars['i']->step > 0 ? 1+1 - (5) : 5-(1)+1)/abs($_smarty_tpl->tpl_vars['i']->step));
if ($_smarty_tpl->tpl_vars['i']->total > 0) {
for ($_smarty_tpl->tpl_vars['i']->value = 5, $_smarty_tpl->tpl_vars['i']->iteration = 1;$_smarty_tpl->tpl_vars['i']->iteration <= $_smarty_tpl->tpl_vars['i']->total;$_smarty_tpl->tpl_vars['i']->value += $_smarty_tpl->tpl_vars['i']->step, $_smarty_tpl->tpl_vars['i']->iteration++) {
$_smarty_tpl->tpl_vars['i']->first = $_smarty_tpl->tpl_vars['i']->iteration === 1;$_smarty_tpl->tpl_vars['i']->last = $_smarty_tpl->tpl_vars['i']->iteration === $_smarty_tpl->tpl_vars['i']->total;?>
        <?php if (($_smarty_tpl->tpl_vars['page']->value-$_smarty_tpl->tpl_vars['i']->value) < 1) {?>
            <?php continue 1;?>
        <?php }?>
        <li><a href='index.php?action=student&func=lists&page=<?php echo $_smarty_tpl->tpl_vars['page']->value-$_smarty_tpl->tpl_vars['i']->value;?>
' ><?php echo $_smarty_tpl->tpl_vars['page']->value-$_smarty_tpl->tpl_vars['i']->value;?>
</a></li>

    <?php }
}
?>
    <li class="am-active"><a href="index.php?action=student&func=lists&page=<?php echo $_smarty_tpl->tpl_vars['page']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['page']->value;?>
</a></li>


    <?php
$_smarty_tpl->tpl_vars['i'] = new Smarty_Variable(null, $_smarty_tpl->isRenderingCache);$_smarty_tpl->tpl_vars['i']->step = 1;$_smarty_tpl->tpl_vars['i']->total = (int) ceil(($_smarty_tpl->tpl_vars['i']->step > 0 ? 5+1 - (1) : 1-(5)+1)/abs($_smarty_tpl->tpl_vars['i']->step));
if ($_smarty_tpl->tpl_vars['i']->total > 0) {
for ($_smarty_tpl->tpl_vars['i']->value = 1, $_smarty_tpl->tpl_vars['i']->iteration = 1;$_smarty_tpl->tpl_vars['i']->iteration <= $_smarty_tpl->tpl_vars['i']->total;$_smarty_tpl->tpl_vars['i']->value += $_smarty_tpl->tpl_vars['i']->step, $_smarty_tpl->tpl_vars['i']->iteration++) {
$_smarty_tpl->tpl_vars['i']->first = $_smarty_tpl->tpl_vars['i']->iteration === 1;$_smarty_tpl->tpl_vars['i']->last = $_smarty_tpl->tpl_vars['i']->iteration === $_smarty_tpl->tpl_vars['i']->total;?>
        <?php if (($_smarty_tpl->tpl_vars['page']->value+$_smarty_tpl->tpl_vars['i']->value) > $_smarty_tpl->tpl_vars['count_page']->value) {?>
            <?php break 1;?>
        <?php }?>
        <li><a href='index.php?action=student&func=lists&page=<?php echo $_smarty_tpl->tpl_vars['page']->value+$_smarty_tpl->tpl_vars['i']->value;?>
' ><?php echo $_smarty_tpl->tpl_vars['page']->value+$_smarty_tpl->tpl_vars['i']->value;?>
</a></li>
    <?php }
}
?>


    <?php if ($_smarty_tpl->tpl_vars['page']->value < $_smarty_tpl->tpl_vars['count_page']->value) {?>
        <?php $_smarty_tpl->_assignInScope('ss', $_smarty_tpl->tpl_vars['page']->value+1);?>
        <li><a href="index.php?action=student&func=lists&page=<?php echo $_smarty_tpl->tpl_vars['ss']->value;?>
">&raquo;</a></li>
    <?php } else { ?>
        <li class="am-disabled" ><a href="#" >&raquo;</a></li>
    <?php }?>

</ul>




</body>
</html>
<?php }
}
